package models

import (
	"gitee.com/sansaniot/ssiot-core/httpmvc/model"
	dto "ssadmin/common/query"
)

type SysForwardServer struct {
	Id              string         `json:"id" gorm:"primaryKey"`
	Name            string         `json:"name"`
	Type            string         `json:"type"`
	Host            string         `json:"host"`
	Port            int            `json:"port"`
	Url             string         `json:"url"`
	Username        string         `json:"username"`
	Password        string         `json:"password"`
	DbName          string         `json:"dbName"`
	DbDriver        string         `json:"dbDriver"`
	DbTable         string         `json:"dbTable"`
	CreatorId       string         `json:"creatorId"`
	AgencyId        string         `json:"agencyId"`
	CreateTime      *dto.LocalTime `json:"createTime"`
	UpdateTime      *dto.LocalTime `json:"updateTime"`
	ConnectStatus   string         `json:"connectStatus"`
	LastForwardTime *dto.LocalTime `json:"lastForwardTime"`
	ForwardCount    int            `json:"forwardCount"`
	model.Model
}

func (SysForwardServer) TableName() string {
	return "sys_forward_server"
}

func (e *SysForwardServer) Generate() interface{} {
	o := *e
	return &o
}

func (e *SysForwardServer) GetId() interface{} {
	return e.Id
}
